home *** CD-ROM | disk | FTP | other *** search
-
- #ifndef __MSCGRID_H
- #define __MSCGRID_H
-
- class MScGrid : public MScroller {
- public:
- WORD Length;
- WORD Width;
- WORD CellLength;
- WORD CellWidth;
- public:
- MScGrid (int x1, int y1, int x2, int y2,
- WORD TheLength, WORD TheWidth,
- WORD AHandle, WORD AnHParent = HROOT);
- MScGrid (const RECT& ABox, WORD TheLength,
- WORD TheWidth, WORD AHandle,
- WORD AnHParent = HROOT);
- virtual void Scroll (Direction where);
- virtual inline void TopLeftCell (POINT& cell);
- virtual inline WORD GetVisibleLength (void);
- virtual inline WORD GetVisibleWidth (void);
- virtual inline void WhichCell (int x, int y, POINT& cell);
- virtual void SetCellSize (WORD length, WORD width);
- virtual void LoadDirect (int fp);
- virtual void SaveDirect (int fp);
- virtual void Draw (int cx, int cy) = 0;
- virtual WORD Handler (EVENT event) = 0;
- ~MScGrid (void);
- };
-
- #endif
-